﻿#ifndef CCorrectPointState_H
#define CCorrectPointState_H
/********************************************************************************
** @ Date:2024/09/09
** @ Author: HanJiaXin
** @ Description:
** @ Version:1.0.0
** @ ClassName:皮带跑偏状态监视界面
** @ Fun:
********************************************************************************/

#include <QWidget>
#include <QTimer>
#include "ui_CCorrectPointState.h"
#include "CDevDataBeltRealign.h"

class CCorrectPointState : public QWidget
{
	Q_OBJECT

public:
	CCorrectPointState(CDevDataBeltRealign* pDevDataBeltRealign);
	~CCorrectPointState();

private:
	void setStyleSheetFile();//设置界面的样式表

private slots:
	void slotDataRefresh();//定时器刷新

public slots:
	void refreshData(bool bRefresh);     // 这个函数会被外部调用

private:
	Ui::CCorrectPointStateClass ui;
	CDevDataBeltRealign* m_pDevDataBeltRealign;
	QString m_sNormalLamp;//指示灯灭样式表字符串
	QString m_sWorkLamp;//指示灯绿灯样式表字符串
	QString m_sAlarmLamp;//指示红灯样式表字符串
	QString m_sWarningLamp;//指示黄灯样式表字符串
	QTimer* m_pTimer;//数据刷新定时器
	int m_nOldFeedback;
	bool m_bIsInit;//是否初始化
};
#endif // 